package com.moli.iov.admin.service;

import com.moli.iov.admin.model.vo.req.UserVo;
import com.moli.iov.rest.RestResponse;
import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 身份认证、权限
 * </p>
 *
 * @author zql
 * @since 2019/9/26 12:32
 */
public interface IAuthenticationFacadeService {

  /**
   * 登陆
   * @param request
   * @param userVo
   * @return
   */
  RestResponse login(HttpServletRequest request, UserVo userVo);

  /**
   * 鉴权
   * @param request
   * @param account
   * @return
   */
  boolean auth(HttpServletRequest request, String account);

  /**
   * 登出
   * @param token
   */
  void logout(String token);
}
